//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of your Microsoft Windows CE
// Source Alliance Program license form.  If you did not accept the terms of
// such a license, you are not authorized to use this source code.
//
//
#ifndef __UTILS_H
#define __UTILS_H

//------------------------------------------------------------------------------

#define COUNT(x) (sizeof(x)/sizeof(x[0]))

BOOL GetOptionFlag(int *pargc, LPTSTR argv[], LPCTSTR szOption);
LPTSTR GetOptionString(int *pargc, LPTSTR argv[], LPCTSTR szOption);
LONG GetOptionLong(int *pargc, LPTSTR argv[], LONG lDefault, LPCTSTR szOption);
void CommandLineToArgs(TCHAR szCommandLine[], int *argc, LPTSTR argv[]);
LPTSTR GetErrorMessage(DWORD dwErrorCode) ;

//------------------------------------------------------------------------------

#endif
